#include "student.hpp"

Student::Student(const std::string &name, double chinese_score, double math_score,
                 double english_score)
    : name_(name),
      chinese_score_(chinese_score),
      math_score_(math_score),
      english_score_(english_score) {
    average_score_ = (chinese_score_ + english_score_ + math_score_) / 3;
    if (average_score_ >= 90.0) {
        is_excellent_ = true;
    } else {
        is_excellent_ = false;
    }
}

double Student::GetChineseScore() const { return chinese_score_; }
double Student::GetMathScore() const { return math_score_; }
double Student::GetEnglishScore() const { return english_score_; }
bool Student::GetIsExcellent() const { return is_excellent_; }
std::string Student::GetName() const { return name_; }
double Student::GetAverageScore() const { return average_score_; }

void Student::SetMathScore(double math_score) {}
void Student::SetEnglishScore(double chinese_score) {}
void Student::SetChineseScore(double english_score) {}